package org.lvws.hellospringcloud.hellozuul;

import org.lvws.hellospringcloud.hellozuul.filter.GatewayFilter;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;
import org.springframework.context.annotation.Bean;

@EnableZuulProxy
@EnableDiscoveryClient
@SpringBootApplication
public class HelloZuulApplication {

    public static void main(String[] args) {
        SpringApplication.run(HelloZuulApplication.class);
    }

    @Bean
    public GatewayFilter gatewayFilter(){
        return new GatewayFilter();
    }

}
